<?php

class Application_Model_Manufacture extends Zend_Db_Table_Abstract
{
	protected $_name = 'manufacture';
	protected $_primary = 'manufacture_id';

	//get all manufacture in database
	public function Get_All_Manufacture(){
		$select = $this->select();
		return $this->fetchAll($select);
	}
	
	//get manufacture with manufacture_id
	public function Get_Manufacture_by_ID($manufacture_id){
	    $select = $this->select()
	                    ->from($this->_name)
	                    ->where("manufacture_id = ?", $manufacture_id);
	    return $this->fetchRow($select);
	}

}

